package com.jinxi.req;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

public class EbookSaveReq {
    private Long id;
    @NotBlank(message = "[名称]不能为空")
    private String name;
    private String category1Id;
    private String category2Id;
    private String description;
    private String cover;

    public Long getId() {return id;}
    public void setId(Long id) {this.id = id;}
    public String getName() {return name;}
    public void setName(String name) {this.name = name;}
    public String getCategory1Id() {return category1Id;}
    public void setCategory1Id(String category1Id) {this.category1Id = category1Id;}
    public String getCategory2Id() {return category2Id;}
    public void setCategory2Id(String category2Id) {this.category2Id = category2Id;}
    public String getDescription() {return description;}
    public void setDescription(String description) {this.description = description;}
    public String getCover() {return cover;}
    public void setCover(String cover) {this.cover = cover;}

    @Override
    public String toString() {
        return "EbookSaveReq{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", category1Id='" + category1Id + '\'' +
                ", category2Id='" + category2Id + '\'' +
                ", description='" + description + '\'' +
                ", cover='" + cover + '\'' +
                '}';
    }
}
